<?php
require_once(dirname(__FILE__).'/../database/Month.php');
require_once(dirname(__FILE__).'/../database/RMHDate.php');
class testMonth extends UnitTestCase {
	function testMonthModule() {

		$m=new Month("03","08");
		$this->assertEqual($m->get_name(), "March, 2008");
		$this->assertTrue($m->get_id()=="03-01-08");
		$this->assertTrue($m->get_start()==6);
		$dates=$m->get_dates();
		$this->assertTrue($dates[1]->get_id()=="03-02-08");
		$this->assertTrue($m->get_days() == 31);

		echo "testMonth complete";
	}
}
?>

